package cn.wolfcode.wolf2world.web.event;

import org.springframework.context.ApplicationEvent;

/**
 * @author 杨兴健
 * @Date 2020/8/18 9:57
 */

public class SandMsgEvent extends ApplicationEvent {

    private String receiver;
    private String content;

    public SandMsgEvent(Object source) {
        super(source);
    }

    public SandMsgEvent(Object source, String receiver, String content) {
        super(source);
        this.receiver = receiver;
        this.content = content;
    }

    public void  sand() {
        System.out.println(source);
        System.out.println("给" + receiver + "发送" + content);
    }
}
